<?php

namespace common\models\base;

use Yii;

/**
 * This is the model class for table "{{%tmp_sms_warning_send}}".
 *
 * @property int $id
 * @property string $mobile
 * @property int $status
 * @property int $send_at
 */
class TmpSmsWarningSend extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%tmp_sms_warning_send}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['mobile'], 'required'],
            [['status', 'send_at'], 'integer'],
            [['mobile'], 'string', 'max' => 11],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'mobile' => Yii::t('app', 'Mobile'),
            'status' => Yii::t('app', 'Status'),
            'send_at' => Yii::t('app', 'Send At'),
        ];
    }
}
